package com.szeastroc.service.system.impl;

import com.szeastroc.base.service.BaseServiceImpl;
import com.szeastroc.bean.system.SystemRole;
import com.szeastroc.mapper.system.SystemRoleMapper;
import com.szeastroc.service.system.SystemRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by jie on 2018/1/9.
 */
@Service
public class SystemRoleServiceImpl extends BaseServiceImpl<SystemRole> implements SystemRoleService{


    @Autowired
    private SystemRoleMapper systemRoleMapper;

    public List<SystemRole> selectRolesByUserId(Integer userId){
        return systemRoleMapper.selectRolesByUserId(userId);
    }
}
